package controller.menu;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import service.interf.IUser;


public class MemberFindController extends MultiActionController {

	private String findView;
	private IUser user;

	public void setMember(IUser user) {
		this.user = user;
	}

	public String getFindView() {
		return findView;
	}

	public void setFindView(String findView) {
		this.findView = findView;
	}
	
	
	public ModelAndView findUser(HttpServletRequest req, HttpServletResponse res) throws Exception {
		
		System.out.println("This is controller, will invoke findAll method");
		user.findAll(0, 0);
		ModelAndView mav = new ModelAndView(this.getFindView());
		return mav; 
	}
	
	
	
	
}
